package com.cbh.feign.controller.permissions;



import java.util.List;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import com.cbh.api.model.ApiResult;
import com.cbh.api.model.system.SysRole;

public interface RoleControllerBase {

	@RequestMapping(value = "/auth/v1/app/role", method = RequestMethod.GET)
	public ApiResult<List<SysRole>> getAllMenu(
			@RequestHeader(value = "accountToken", required = false) String accountToken,
			@RequestParam(value = "accountToken", required = false) String accountToken1);

	@RequestMapping(value = "/auth/v1/app/role/{roleId}", method = RequestMethod.GET)
	public ApiResult<SysRole> getMenuByID(@PathVariable("roleId") String roleId,
			@RequestHeader(value = "accountToken", required = false) String accountToken,
			@RequestParam(value = "accountToken", required = false) String accountToken1);

	@RequestMapping(value = "/auth/v1/app/role/saveRole", method = RequestMethod.POST, produces = "application/json")
	public ApiResult<String> updateMenu(@RequestHeader(value = "accountToken", required = false) String accountToken,
			@RequestParam(value = "accountToken", required = false) String accountToken1,
			@RequestBody(required = true) SysRole sysrole);
}
